#region [file: UsuarioDAL.cs, author: Lucas Bittencourt]
// File:    UsuarioDAL.cs
// Author:  Lucas Bittencourt
// Created: terça-feira, 13 de setembro de 2011 23:34:04
// Purpose: Defines dao implementation class for class Usuario
#endregion

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using NHibernate.Criterion;
using DA_OOMModel;
using DA_OOMModelIDAL;
using NHibernate;

namespace DA_OOMNHibernateDAL
{
   /// <summary>
   /// Class that implements methods of IUsuarioDAL interface
   /// </summary>
    public partial class ClienteDAL2 : IClienteDAL2 
   {
        
       /// <summary>
       /// Find <Code>Cidade</Code> instances by Estado
       /// </summary>
       /// <param name="estado"/>
       /// <returns>Cidade instance list</returns>
       public List<Cliente> FindByUsuario(Usuario usuario)
       {
           /*
           ISession loSession = this.GetSession(true);
           ICriteria loCriteria = loSession.CreateCriteria(typeof(Cliente));
           loCriteria.Add(Expression.Eq("Usuario", usuario));
          // loCriteria.SetProjection(Projections.RowCount());
           IList loList = loCriteria.List();*/
           return null; //ConvertToGenericList(loList);
       }
    
     
   }
     
}